package org.duang.http.common;

public class ResponseMessage extends HttpMessage {

	private String uri;
	private int statusCode;
	private static final int HTTP_SUCCESS_STATUS_CODE = 200;

	public ResponseMessage() {

	}

	public String getUri() {
		return uri;
	}

	public void setUri(String uri) {
		this.uri = uri;
	}

	public int getStatusCode() {
		return statusCode;
	}

	public void setStatusCode(int statusCode) {
		this.statusCode = statusCode;
	}
	
	public boolean isSuccessful() {
		return statusCode / 100 == HTTP_SUCCESS_STATUS_CODE / 100;
	}
	

}
